On Dec 10, 2:22pm, Casper Dik wrote: } Subject: Re: 8lgm's SCO "at" hole } } Getwd() is to getcwd() what gets() is to fgets() [ well, almost ]. } } When chosing between: getwd(char *buf) and getcwd(char *buf, size_t } size_of_buf) the choice should be obvious. I would have to disagree. fgets() can return any amount of data (potentially GB if connected to a socket or very large file); whereas, getwd() won't return anything bigger then MAXPATHLEN, so buf can be sized appropriately. }-- End of excerpt from Casper Dik